﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebmasterTool/Admin.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="Framework.WebmasterTool.Default" ValidateRequest="false" %>

<%@ Register Src="../Controls/simpleImageUploadUserControl/SimpleImageUpload.ascx"
    TagName="SimpleImageUpload" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="/WebmasterTool/Js/farbtastic.js" type="text/javascript"></script>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ctlCaption" runat="Server">
    Cấu hình chung
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PageContent" runat="Server">
    <asp:Label ID="lblPermissionMessage" runat="server" Font-Bold="true" ForeColor="Red"
        Text="Tài khoản không có quyền truy cập vào trang này" Visible="false"></asp:Label>
    <asp:Panel ID="Panel1" runat="server" Visible="true">
        <span id="lblMassage" runat="server" visible="false" style="color: Green; float: left;
            width: 100%; margin-bottom: 10px; margin-top: 10px">Cấu hình chung đã được lưu thành
            công.</span>
        <div style="margin-bottom: 5px;">
            <div style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">
                <asp:CheckBox ID="chkUnderContruction" runat="server" Text="Site đang xây dựng" />
            </div>
            <asp:TextBox ID="txtRealeaseDate" runat="server" Width="250"></asp:TextBox>
            <AjaxControlToolkit:CalendarExtender ID="CalendarExtender1" Format="dd/MM/yyyy"
                runat="server" TargetControlID="txtRealeaseDate">
            </AjaxControlToolkit:CalendarExtender>
            <AjaxControlToolkit:MaskedEditExtender ID="MaskedEditExtender1" runat="server" MaskType="Date"
                ClearMaskOnLostFocus="true" TargetControlID="txtRealeaseDate" AcceptAMPM="true"
                Mask="99/99/9999" AutoComplete="false" InputDirection="LeftToRight"
                ErrorTooltipEnabled="true" MessageValidatorTip="true">
            </AjaxControlToolkit:MaskedEditExtender>
            <AjaxControlToolkit:MaskedEditValidator ID="MaskedEditValidator1" runat="server"
                ValidationGroup="info" ControlToValidate="txtRealeaseDate" ControlExtender="MaskedEditExtender1"
                EmptyValueBlurredText="*" InvalidValueBlurredMessage="*" InvalidValueMessage="Sai định dạng ngày tháng năm"
                IsValidEmpty="true"> 
            </AjaxControlToolkit:MaskedEditValidator>
            <span id="spanClearDateFrom" style="cursor: pointer;">[x]</span>
        </div>
        <div style="margin-bottom: 5px; clear: both;">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Tên công ty:</span>
            <asp:TextBox ID="txtCompanyName" runat="server" Width="250px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCompanyName"
                ErrorMessage="Chưa nhập tên công ty." Display="Dynamic" ValidationGroup="info">*</asp:RequiredFieldValidator>
        </div>
        <div style="margin-bottom: 5px;" runat="server" visible="true">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Tên công ty(en):</span>
            <asp:TextBox ID="txtCompanyName_en" runat="server" Width="250px"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Địa chỉ:</span>
            <asp:TextBox ID="txtAddress" runat="server" Width="250px"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;" runat="server" visible="true">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Địa chỉ(en):</span>
            <asp:TextBox ID="txtAddress_en" runat="server" Width="250px"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Email:</span>
            <asp:TextBox ID="txtEmail" runat="server" Width="250px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Chưa nhập email"
                ControlToValidate="txtEmail" Display="Dynamic" ValidationGroup="info">*</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                ValidationGroup="info" runat="server" ControlToValidate="txtEmail" ErrorMessage="Email sai định dạng"
                Display="Dynamic">*</asp:RegularExpressionValidator>
        </div>
        <div style="margin-bottom: 5px;">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Điện thoại:</span>
            <asp:TextBox ID="txtPhone" runat="server" Width="250px"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Fax:</span>
            <asp:TextBox ID="txtFax" runat="server" Width="250px"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Website:</span>
            <asp:TextBox ID="txtWebsite" runat="server" Width="250px"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;" runat="server">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Slogan:</span>
            <asp:TextBox ID="txtSlogan" runat="server" Width="250px"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;" runat="server" visible="true">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Slogan(en):</span>
            <asp:TextBox ID="txtSlogan_en" runat="server" Width="250px"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Facebook:</span>
            <asp:TextBox ID="txtFacebook" runat="server" Width="250px"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Google+:</span>
            <asp:TextBox ID="txtGoogleAdd" runat="server" Width="250px"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Twitter:</span>
            <asp:TextBox ID="txtTwitter" runat="server" Width="250px"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Youtube:</span>
            <asp:TextBox ID="txtYoutube" runat="server" Width="250px"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">
                <asp:CheckBox ID="chkEnableLogo" runat="server" Text="Hiển thị Logo" />
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:CheckBox ID="chkWatermarkLogo" runat="server" Text="Chèn chữ ký" AutoPostBack="true"
                            OnCheckedChanged="ckhWatermarkLogo_CheckedChanged" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </span>
            <uc1:SimpleImageUpload ID="siuUploadLogo" runat="server" CssClass="ImageUpload" AutoOpenImageEditPopupAfterUpload="true" />
            (Sử dụng hình ảnh *. jpg, *png, *gif kích thước khoảng w:170 x h:100)
        </div>
        <div style="margin-bottom: 5px;">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Thuộc tính:</span> Title:
            <asp:TextBox ID="txtTitleLogo" runat="server" Width="200"></asp:TextBox>
            Alt:
            <asp:TextBox ID="txtAltLogo" runat="server" Width="200"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;" runat="server" visible="true">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">
                <asp:CheckBox ID="chkEnableBanner" runat="server" Text="Hiển thị Banner:" />
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
                        <asp:CheckBox ID="chkWatermarkBanner" runat="server" Text="Chèn chữ ký" AutoPostBack="true"
                            OnCheckedChanged="chkWatermarkBanner_CheckedChanged" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </span>
            <uc1:SimpleImageUpload ID="siuUploadBanner" runat="server" CssClass="ImageUpload"
                AutoOpenImageEditPopupAfterUpload="true" />
            (Sử dụng hình ảnh *. jpg, *png, *gif kích thước khoảng w:550 x h:100)
        </div>
        <div style="margin-bottom: 5px;" runat="server" visible="true">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Thuộc tính:</span> Title:
            <asp:TextBox ID="txtTitleBanner" runat="server" Width="200"></asp:TextBox>
            Alt:
            <asp:TextBox ID="txtAltBanner" runat="server" Width="200"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;" runat="server" visible="true">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Url banner:</span>
            <asp:TextBox ID="txtUrlBanner" runat="server" Width="250"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Sai định dạng url"
                ControlToValidate="txtUrlBanner" ValidationExpression="(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&amp;:/~\+#]*[\w\-\@?^=%&amp;/~\+#])?"
                Display="Dynamic" ValidationGroup="info">*
            </asp:RegularExpressionValidator>
        </div>
        <div style="margin-bottom: 5px;" runat="server" visible="true">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">
                <asp:CheckBox ID="chkEnableBanner_en" runat="server" Text="Hiển thị Banner(en)" />
                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                    <ContentTemplate>
                        <asp:CheckBox ID="chkWatermarkBanner_en" runat="server" Text="Chèn chữ ký" AutoPostBack="true"
                            OnCheckedChanged="chkWatermarkBanner_en_CheckedChanged" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </span>
            <uc1:SimpleImageUpload ID="siuUploadBanner_en" runat="server" CssClass="ImageUpload"
                AutoOpenImageEditPopupAfterUpload="true" />
            (Sử dụng hình ảnh *. jpg, *png, *gif kích thước khoảng w:550 x h:100)
        </div>
        <div style="margin-bottom: 5px;" runat="server" visible="true">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Thuộc tính:</span> Title:
            <asp:TextBox ID="txtTitleBanner_en" runat="server" Width="200"></asp:TextBox>
            Alt:
            <asp:TextBox ID="txtAltBanner_en" runat="server" Width="200"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;" runat="server" visible="true">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Url banner(en):</span>
            <asp:TextBox ID="txtUrlBanner_en" runat="server" Width="250"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="Sai định dạng url"
                ControlToValidate="txtUrlBanner_en" ValidationExpression="(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&amp;:/~\+#]*[\w\-\@?^=%&amp;/~\+#])?"
                Display="Dynamic" ValidationGroup="info">*
            </asp:RegularExpressionValidator>
        </div>
        <div style="margin-bottom: 5px;">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Google map:(w:570 x h:450)</span>
            <div style="margin-left: 155px">
                <CKEditor:CKEditorControl ID="txtGoogleMap" runat="server" UIColor="#CED9F3" Toolbar="GoogleMap"
                    BasePath="/Plugins/Ckeditor" ContentsCss="/Plugins/Ckeditor/contents.css" TemplatesFiles="/Plugins/Ckeditor/plugins/templates/templates/default.js">
                </CKEditor:CKEditorControl>
            </div>
        </div>
        <div style="margin-bottom: 5px;">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Title page:</span>
            <asp:TextBox ID="txtTitlePage" runat="server" Width="250px"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Meta Keywords:</span>
            <asp:TextBox ID="txtMetaKeyword" runat="server" Width="250px" TextMode="MultiLine"
                Height="100px"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Meta Description:</span>
            <asp:TextBox ID="txtMetaDescription" runat="server" Width="250px" TextMode="MultiLine"
                Height="100px"></asp:TextBox>
        </div>
        <div style="margin-bottom: 5px;">
            <span style="color: #555; width: 150px; text-align: right; float: left; display: block;
                margin-right: 5px">Meta Title:</span>
            <asp:TextBox ID="txtMetaTitle" runat="server" Width="250px" TextMode="MultiLine"
                Height="100px"></asp:TextBox>
        </div>
      
      
    
       
        
      
       
       
      
     
        <div style="margin-bottom: 5px; margin-top: 20px;">
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="info"
                Font-Bold="True" Font-Size="11px" />
            <asp:Button ID="btnSave" runat="server" Text="Lưu" Width="100" ValidationGroup="info"
                Style="margin-left: 250px" OnClick="btnSave_Click" />
            <asp:Button ID="btnCancel" runat="server" Text="Huỷ thao tác" Width="100" ValidationGroup="info"
                Style="margin-left: 2px" OnClick="btnCancel_Click" />
        </div>
    </asp:Panel>
</asp:Content>
